<template>
  <div>
    <hr>
    <p>-----这是一个父组件v-model ----------{{ num }}</p>
    <!-- 对于 -->
    <input v-model="name" type="text">
    <son :value="num" @input="(val) => (num = val)" />
  </div>
</template>

<script>
import son from './son.vue'
export default {
  components: { son },
  data() {
    return {
      uname: 'zs',
      num: 100
    }
  }
}
</script>

<style>
</style>
